def get_file():
	#get the file to operate
	f = open("Lab3/圆周率.txt", "r",encoding = 'utf-8')
	lines = f.read()
	f.close()
	return lines

lines = get_file()
pi_string = ''
for line in lines:
    pi_string += line.rstrip()
for i in range(1,100):
    print("选择功能：")
    print("1、判断")
    print("2、退出")
    choice = input("输入你的选择(1/2):")
    if choice == '1':
        birthday = input("您的生日：")
        if birthday in pi_string:
            print('存在\n')
        else:
            print("不存在\n")
    if choice == '2':
        break
